package cn.jiaqiang.chatgpt.data.domain.openai.repository;

import cn.jiaqiang.chatgpt.data.domain.openai.model.entity.UserAccountEntity;
import org.springframework.stereotype.Repository;

/**
 * User: jia-qiang
 * Date: 2024-04-09
 * Time: 15:13
 * 用户仓储服务
 */
@Repository
public interface IUserAccountRepository {

    /** 用户开户 */
    String insertUserAccount(UserAccountEntity userAccountEntity);

    /** 通过用户id查询用户 */
    UserAccountEntity queryUserByUserId(String userId);

    /** 账号迁移 */
    void updateUserOpenIdWithUserId(String openId, String userId);

}
